package com.demo.spring.system.service;

import java.io.IOException;
import java.io.InputStream;

import org.apache.hadoop.fs.FileStatus;

public interface HdfsService {
	
	public boolean uploadFile(String filePath, byte[] datas) throws IOException ;
	
	public InputStream downloadFile(String filePath) throws IOException ;
	
	public boolean deleteFileFromHDFS(String filePath) throws IOException ;
	
	public FileStatus[] getSubDirFileStatus(String dirPath) throws IOException ;

}
